/*
传值_父类
User: shy
Date: 2024-04-16 10:44
All rights reserved by Kong Fanqun
*/
<template>

  <cz_1 @childValue="childValue" :test22="testf" ref="dddd">
    <template #slot_1>
      <p>插槽1</p>
    </template>

    <template #slot_2>
      <p>插槽2</p>
    </template>

    <template #slot_3>
      <p>插槽3</p>
    </template>

  </cz_1>
  <div @click="chuanzhi">asdasda奥术大师多sd/n</div>

</template>
<script setup>
import cz_1 from "@/views/a_shy/demo/cz_1.vue"
import {reactive, ref, onMounted} from "vue";

const testf = ref("")
const dddd = ref({})

function childValue(obj) {
  console.log(obj.value);
}

function chuanzhi() {
  console.log("dddd")
  testf.value = "雕刻机";
  dddd.value.click2("分类现在传给子");
}
</script>

<style scoped>

</style>